Repository navigation
fix(review): finding locations keep paths with +, @, ~ or % - #529
Merged
Merged
Conversation
The location patterns matched paths with [a-zA-Z0-9_\-./\\] only. A path outside that class fell through to a fallback that kept its first path-like fragment, so every finding under a corpus named playbooks+core+... was saved as .data/reviews/corpora/playbooks, with no file and no lines. The three location patterns (a path with lines, a file:target location and a location embedded in prose) now share one character class: letters and digits of any script, and the punctuation file names use: c++, @scope, logo@2x, ~/.config, 100%. Closes #498
This was referenced Sep 24, 2026
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #498.
Problem
canonicalize_finding_locationmatched paths with[a-zA-Z0-9_\-./\\]only. A path outside that class fell through to a fallback that kept its first path-like fragment. Every finding under the #415 corpus namedplaybooks+core+...was saved as.data/reviews/corpora/playbooks, with no file and no lines.Change
The three location patterns share one character class (
_PATH_CHARSinreview_schema.py):file:targetlocation;The class accepts letters and digits of any script, plus the punctuation file names use:
+include/c++/,playbooks+core@node_modules/@scope/,logo@2x.svg~~/.config/%100%-coverage.mdTest plan
tests/test_review_location_paths.py(23 tests). For a path with each character, and one with non-ASCII letters:#Lanchors, backticks and, linesare normalized;file:targetlocation is kept;Finding.Before the fix, 20 of these failed.
Existing canonicalizer tests, including the conversational-scratchpad rejections, pass unchanged
uv run devops ci --force: all 13 gates pass, including the fix(review): audit every mechanism that discards or invents findings, with a regression harness #509 regression harness